import {createApp} from 'vue'
import App from './App.vue'
import router from "/@/router";
import "/@/assets/tailwind.css";
import {createPinia} from 'pinia'
import 'animate.css';
import {createI18n} from 'vue-i18n';
import zh from "/@/lang/zh.js"
import en from "/@/lang/en.js"

const i18n = createI18n({
    legacy: false,
    locale: localStorage.getItem('locale') || 'zh',
    messages: {
        'zh': zh, // 中文语言包
        'en': en // 英文语言包
    }
})
const pinia = createPinia()
const app = createApp(App);

app.use(i18n);
app.use(router);
app.use(pinia)
app.mount("#app");